home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Prog / B-C / C Servant™.sit / C Info.rsrc / TEXT_133_aText.txt < prev    next >
Encoding:
Text File  |  1992-02-23  |  470 b   |  11 lines

  1.  
  2. string functions
  3.  
  4. strlens(s0                                                    returns length of s
  5. strcpy(s1,s2)                                        copy s2 into s1
  6. strcat(s1,s2)                                        concat (append) s2 to the end of s1
  7. strcmp(s1,s2)                                        0 if s1==s2,<0 if s1<s2, >0 if s1>s2
  8. strchr(s,c)                                                returns a pointer to c in s, else NULL
  9. strncpy(s1,s2,n)                            copy up to n characters from s2 into s1
  10. strncats(s1,s2,n)                        concat up to n chars from s2 to end of s1
  11. strncmps(s1,s2,n)                        compare n characters, same as strcmp0